package com.zzw.springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzw.springboot.controller.dto.UserPasswordDTO;
import com.zzw.springboot.entity.User;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zzw
 * @since 2022-05-10 22:11:15
 */
public interface UserMapper extends BaseMapper<User> {

    @Update("UPDATE sys_user SET password = #{newPassword} WHERE username = #{username} AND password = #{password}")
    int updatePwd(UserPasswordDTO userPasswordDTO);
}
